﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _030泛型_部分类_枚举_结构体_5数据库操作
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var dbContext = new BookstoreEntities();
            var books = dbContext.Book;
            foreach (var item in books)
            {
                //Console.WriteLine(item.Name);
                Console.WriteLine(item.Report());
            }
        }
    }
}
